package com.qf.cx.simplenms.link.api;

import java.util.Map;

public interface LinkStatus {
	
	Map<String,State> getLinkStatus();
	
	enum State {
		DOWN(0), UP(1);
		private int value;

		private State(int value) {
			this.value = value;
		}

		public int getValue() {
			return value;
		}

		public static State valueOf(int a) {
			State[] values = values();
			for (State state : values) {
				if (state.getValue() == a) {
					return state;
				}
			}
			return null;
		}
	}
	
	
}
